package com.atguigu.day13.work;

import jdk.nashorn.internal.runtime.Undefined;

public class Work01 {
    public static void main(String[] args) {
        Mythread mythread=new Mythread();
        mythread.start();
        for (int i=1;i<=100;i+=2){
            System.out.println("main主线程-->"+i);
        }
    }
}
class Mythread extends Thread{
    @Override
    public void run() {
        for (int i=0;i<100;i+=2){
            System.out.println("子线程-->"+i);
        };
    }
}

